﻿using System.Windows.Forms;

namespace DCS.AdministrationClient.Forms
{
    public partial class LogBrowser : Form
    {
        public LogBrowser()
        {
            InitializeComponent();
            ShowLog();
        }

        private void ShowLog()
        {
            foreach (LogRecord log in Program.Context.Log)
            {
                gridViewLog.Rows.Add(
                    imageListIcons.Images[log.Type.ToString()],
                    log.Message,
                    log.Time);
            }
        }
    }
}